package values.skill
{
	import core.Configuration;
	import core.Language;
	BuffDebuffProTemplateValue;
	import flash.utils.Dictionary;

	public class BuffDebuffEffectTemplateValue
	{
		[Data(type="field" , mapping="@target")]
		public var target:int;
		
		[Data(type="field" , mapping="@round")]
		public var round:String;
		
		[Data(type="field" , mapping="@icon")]
		public var baseIcon:String;
		
		public function get icon():String
		{
			return Configuration.assetsPath + baseIcon;
		}
		
		[Data(type="field" , mapping="@name")]
		public var baseName:String;
		
		public function get name():String
		{
			return Language.getText(baseName);
		}
		
		[Data(type="field" , mapping="@desc")]
		public var baseDesc:String;
		
		public function get desc():String
		{
			return Language.getText(baseDesc);
		}
		
		[Data(type="field" , mapping="@is_buff")]
		public var isBuff:Boolean;
		
		[Data(type="mapping" , mapping="pros.pro",
				ref="values.skill.BuffDebuffProTemplateValue",
				way="one_to_more",
				object="flash.utils.Dictionary",
				key="pro_name")]
		public var proDic:Dictionary;
		
		[Data(type="field" , mapping="@classRef")]
		public var classRef:String;
		
		public var owner:SkillTemplateValue;
	}
}